home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / lib.fmt / c / ecvt.man < prev    next >
Encoding:
Text File  |  1989-05-19  |  2.0 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ECVT                  C Library Procedures                   ECVT
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      ecvt, fcvt, gcvt - output conversion
  10.  
  11. SSYYNNOOPPSSIISS
  12.      cchhaarr **eeccvvtt((vvaalluuee,, nnddiiggiitt,, ddeeccpptt,, ssiiggnn))
  13.      ddoouubbllee vvaalluuee;;
  14.      iinntt nnddiiggiitt,, **ddeeccpptt,, **ssiiggnn;;
  15.  
  16.      cchhaarr **ffccvvtt((vvaalluuee,, nnddiiggiitt,, ddeeccpptt,, ssiiggnn))
  17.      ddoouubbllee vvaalluuee;;
  18.      iinntt nnddiiggiitt,, **ddeeccpptt,, **ssiiggnn;;
  19.  
  20.      cchhaarr **ggccvvtt((vvaalluuee,, nnddiiggiitt,, bbuuff))
  21.      ddoouubbllee vvaalluuee;;
  22.      cchhaarr **bbuuff;;
  23.  
  24. DDEESSCCRRIIPPTTIIOONN
  25.      _E_c_v_t converts the _v_a_l_u_e to a null-terminated string of _n_d_i_-
  26.      _g_i_t ASCII digits and returns a pointer thereto.  The posi-
  27.      tion of the decimal point relative to the beginning of the
  28.      string is stored indirectly through _d_e_c_p_t (negative means to
  29.      the left of the returned digits).  If the sign of the result
  30.      is negative, the word pointed to by _s_i_g_n is non-zero, other-
  31.      wise it is zero.  The low-order digit is rounded.
  32.  
  33.      _F_c_v_t is identical to _e_c_v_t, except that the correct digit has
  34.      been rounded for Fortran F-format output of the number of
  35.      digits specified by _n_d_i_g_i_t_s.
  36.  
  37.      _G_c_v_t converts the _v_a_l_u_e to a null-terminated ASCII string in
  38.      _b_u_f and returns a pointer to _b_u_f. It attempts to produce
  39.      _n_d_i_g_i_t significant digits in Fortran F format if possible,
  40.      otherwise E format, ready for printing.  Trailing zeros may
  41.      be suppressed.
  42.  
  43. SSEEEE AALLSSOO
  44.      printf(3)
  45.  
  46. BBUUGGSS
  47.      The return values point to static data whose content is
  48.      overwritten by each call.
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Sprite v1.0               May 15, 1985                          1
  64.  
  65.  
  66.  
  67.